import http from"../api/http"
//添加购物车
export const addCart=(data)=>http.post('/shop',data)
//获取购物车
export const getCartApi=()=>http.get('/shop')
//支付
export const buy=(data)=>http.put("/shop/pay",data)
//产品详情
export const getDetail = (id) => http.get(`/rl/detail`,{
    params:id
});